www.gusucode.com > PHP版 QQ聊天机器人源码 V3.2PHP源码程序 > PHP版 QQ聊天机器人源码 V3.2/Itpk_V3.2_Zip/Itpk_V3.2_Zip/delrenewal.php

    <?php

/**
 * 删除续期配置
 * @author 冬天的秘密
 * @link http://bbs.itpk.cn
 * @version 1.0
 */

/**
 * 加载主体文件
 */
require_once 'web-init.php';

/**
 * 如果用户不是登录成功状态则跳转到登录页面
 */
if (LOGIN_STATUS != UserLoginUtil::SUCCESS) header("location:login.php");

/**
 * 如果用户没有权限则给出提示
 */
RoleUtil::findRole($user_role['jurisdiction'], RoleUtil::MANAGERRENEWAL, "抱歉,您没有权限访问");

/**
 * 如果没有接收到role_id参数,则跳转到角色管理页面
 */
if (!DataUtil::is_exits("renewal_id")) header("location:renewal.php");

/**
 * 实例化续期操作类
 */
$renewalPer = new WebrenewalPer();

/**
 * 续期ID
 */
$renewal_id = DataUtil::param_mysql_filter("renewal_id");

if (DataUtil::is_exits("delete")) {
	$removeResult = $renewalPer->deleteMe($renewal_id);
	if ($removeResult) {
		header("location:renewal.php");
		exit();
	}
}

/**
 * 获取要删除的续期配置
 */
$renewal = $renewalPer->getMeById($renewal_id);

/**
 * 设置网页标题
 */
$_set_html_title = "删除续期配置";

/**
 * 需要加载的CSS文件
 */
$_link_file_array = array();

/**
 * 需要加载的JavaScript文件
 */
$_script_file_array = array();

/**
 * 加载公共头部文件
 */
require_once DOCUMENTS_FOLDER . "header.inc";

/**
 * 导入首页模板文件
 */
require_once MANAGER_FOLDER . "delrenewal.inc";

/**
 * 加载公共尾部文件
 */
require_once DOCUMENTS_FOLDER . 'footer.inc';

?>